﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CourseManagerBLL;
using CourseManagerModel;

namespace CourseManagerWPF
{
    /// <summary>
    /// FrmManageStudent.xaml 的交互逻辑
    /// </summary>
    public partial class FrmManageStudent : UserControl
    {
        private CourseManager courseManager = new CourseManager();
        public FrmManageStudent()
        {
            InitializeComponent();
            this.cboClass.ItemsSource = null;
            this.cboClass.DisplayMemberPath = "";
            this.cboClass.SelectedValuePath = "";
            this.cboClass.SelectedIndex = -1;
            this.dgvList.AutoGenerateColumns = false;
        }

        /// <summary>
        /// 关闭用户控件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddStudenat_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Hidden;
        }

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUqery_Click(object sender, RoutedEventArgs e)
        {
            //数据绑定
            this.dgvList.ItemsSource = null;

        }
    }
}
